//
//
//  二维码料单界面
//
//

import QtQuick
import QtQuick.Layouts
import QtQuick.Controls.Basic
import Qt5Compat.GraphicalEffects

Item {
    id: qrCodeProcessBackGround
    width: rootWidth
    height: rootHeight /*- 150*/

    Component.onCompleted: {
        Cpp_PLC.QML_CurrentPage = 6;
        Cpp_PLC.write_Modbus_RTU_Hold_16(48,"6")
        Cpp_PLC.write_Modbus_RTU_Coils(480,"0")
    }

    // property bool mechine_Angle: Cpp_PLC.MechineChangeAngleMode

    ColumnLayout{
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        spacing: 0

        // 标题行
        Item{
            width: 1080
            height: 70

            Rectangle{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                width: 100
                height: 70
                radius: 10
                border.width: 1
                border.color: "white"
                color: "black"

                Text{
                    anchors.centerIn: parent
                    font.pixelSize:  Cpp_Config.Language_Type === 0 ? 30 :  Cpp_Config.Language_Type === 1 ? 20 : 20
                    font.bold: true
                    color: "white"
                    text: qsTr("序 号")
                }
            }
            Rectangle{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 100
                width: 240
                height: 70
                radius: 10
                border.width: 1
                border.color: "white"
                color: "black"

                Text{
                    anchors.centerIn: parent
                    font.pixelSize: Cpp_Config.Language_Type === 0 ? 30 :  Cpp_Config.Language_Type === 1 ? 20 : 20
                    font.bold: true
                    color: "white"
                    text: qsTr("型材长度")
                }
            }
            Rectangle{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 340
                width: 150
                height: 70
                radius: 10
                border.width: 1
                border.color: "white"
                color: "black"

                Text{
                    anchors.centerIn: parent
                    font.pixelSize: Cpp_Config.Language_Type === 0 ? 30 :  Cpp_Config.Language_Type === 1 ? 20 : 20
                    font.bold: true
                    color: "white"
                    text: qsTr("左角度")
                }
            }
            Rectangle{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 490
                width: 150
                height: 70
                radius: 10
                border.width: 1
                border.color: "white"
                color: "black"

                Text{
                    anchors.centerIn: parent
                    font.pixelSize: Cpp_Config.Language_Type === 0 ? 30 :  Cpp_Config.Language_Type === 1 ? 20 : 20
                    font.bold: true
                    color: "white"
                    text: qsTr("右角度")
                }
            }
            Rectangle{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 640
                width: 220
                height: 70
                radius: 10
                border.width: 1
                border.color: "white"
                color: "black"

                Text{
                    anchors.centerIn: parent
                    font.pixelSize: Cpp_Config.Language_Type === 0 ? 30 :  Cpp_Config.Language_Type === 1 ? 20 : 20
                    font.bold: true
                    color: "white"
                    text: qsTr("切割数量")
                }
            }
            Rectangle{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 860
                width: 220
                height: 70
                radius: 10
                border.width: 1
                border.color: "white"
                color: "black"

                Text{
                    anchors.centerIn: parent
                    font.pixelSize: Cpp_Config.Language_Type === 0 ? 30 :  Cpp_Config.Language_Type === 1 ? 20 : 20
                    font.bold: true
                    color: "white"
                    text: qsTr("已加工数量")
                }

                MouseArea{
                    anchors.fill: parent

                    onPressed: {
                        Cpp_PLC.write_Modbus_RTU_Coils(142,"1")
                    }

                    onReleased: {
                        Cpp_PLC.write_Modbus_RTU_Coils(142,"0")
                    }
                }
            }
        }

        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "1"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength01_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1600,inputData)
                }

            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_01_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_01_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1640,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1640,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_01_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_01_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1641,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1641,"1")
                        }
                    }

                }

            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_01_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1680,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220                
                showData: Cpp_PLC.WorkedCount_01_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1700,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "2"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength02_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1602,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_02_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_02_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1642,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1642,"1")
                        }
                    }

                }

            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_02_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_02_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1643,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1643,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_02_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1681,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_02_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1701,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "3"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength03_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1604,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_03_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_03_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1644,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1644,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_03_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_03_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1645,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1645,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_03_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1682,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_03_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1702,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "4"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength04_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1606,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_04_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_04_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1646,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1646,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_04_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_04_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1647,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1647,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_04_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1683,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_04_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1703,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "5"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength05_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1608,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_05_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_05_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1648,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1648,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_05_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_05_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1649,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1649,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_05_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1684,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_05_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1704,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "6"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength06_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1610,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_06_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_06_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1650,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1650,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_06_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_06_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1651,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1651,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_06_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1685,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_06_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1705,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "7"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength07_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1612,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_07_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_07_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1652,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1652,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_07_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_07_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1653,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1653,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_07_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1686,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_07_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1706,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "8"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength08_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1614,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_08_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_08_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1654,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1654,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_08_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_08_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1655,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1655,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_08_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1687,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_08_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1707,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "9"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength09_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1616,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_09_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_09_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1656,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1656,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_09_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_09_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1657,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1657,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_09_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1688,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_09_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1708,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "10"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength10_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1618,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_10_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_10_ListProcess === "1"  ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1658,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1658,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_10_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_10_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1659,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1659,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_10_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1689,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_10_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1709,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "11"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength11_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1620,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_11_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_11_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1660,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1660,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_11_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_11_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1661,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1661,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_11_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1690,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_11_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1710,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "12"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength12_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1622,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_12_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_12_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1662,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1662,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_12_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_12_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1663,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1663,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_12_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1691,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_12_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1711,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "13"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength13_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1624,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_13_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_13_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1664,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1664,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_13_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_13_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1665,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1665,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_13_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1692,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_13_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1712,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "14"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength14_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1626,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_14_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_14_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1666,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1666,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_14_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_14_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1667,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1667,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_14_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1693,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_14_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1713,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "15"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength15_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1628,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_15_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_15_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1668,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1668,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_15_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_15_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1669,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1669,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_15_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1694,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_15_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1714,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "16"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength16_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1630,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_16_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_16_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1670,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1670,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_16_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_16_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1671,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1671,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_16_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1695,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_16_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1715,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "17"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength17_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1632,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_17_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_17_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1672,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1672,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_17_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_17_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1673,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1673,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_17_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1696,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_17_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1716,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "18"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength18_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1634,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_18_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_18_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1674,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1674,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_18_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_18_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1675,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1675,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_18_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1697,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_18_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1717,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "19"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }
            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength19_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1636,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_19_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_19_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1676,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1676,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_19_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_19_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1677,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1677,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_19_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1698,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_19_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1718,inputData)
                }
            }

        }
        Item{
            width: 1080
            height: 70

            A_Label{
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 100
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: Cpp_PLC.OrderNumber_ListProcess === label_Data ? "green" : "white"
                label_Data: "20"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        Cpp_PLC.write_Modbus_RTU_Hold_16(77,parent.label_Data)
                        Cpp_PLC.write_Modbus_RTU_Coils(172,0)
                        if(Cpp_PLC.MechineChangeAngleMode)
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                        }
                        else
                        {
                            Cpp_PLC.write_Modbus_RTU_Coils(140,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,1)
                            Cpp_PLC.write_Modbus_RTU_Coils(140,0)
                            Cpp_PLC.write_Modbus_RTU_Coils(141,0)
                        }
                    }
                }

            }

            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 100
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 240
                showData: Cpp_PLC.MaterialLength20_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1638,inputData)
                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 340
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.LeftAngle_20_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.LeftAngle_20_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1678,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1678,"1")
                        }
                    }

                }
            }
            A_Label{
                anchors.left: parent.left
                anchors.leftMargin: 490
                anchors.verticalCenter: parent.verticalCenter
                labelWidth: 150
                labelHeight: 70
                labelBorderColor: "black"
                labelBorderWidth: 1
                labelBack: "white"
                label_FontColor: Cpp_PLC.RightAngle_20_ListProcess === "1" ? "red" : "black"
                label_Data: Cpp_PLC.RightAngle_20_ListProcess === "1" ? "90" : "45"

                MouseArea{
                    anchors.fill: parent

                    onClicked: {
                        if(parent.label_Data === "90")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1679,"0")
                        }
                        else if(parent.label_Data === "45")
                        {
                            Cpp_PLC.write_Modbus_RTU_Hold_16(1679,"1")
                        }
                    }

                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 640
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.CutCount_20_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1699,inputData)
                }
            }
            A_TextInput{
                anchors.left: parent.left
                anchors.leftMargin: 860
                anchors.verticalCenter: parent.verticalCenter
                inputWidth: 220
                showData: Cpp_PLC.WorkedCount_20_ListProcess

                onInputFinished: {
                    Cpp_PLC.write_Modbus_RTU_Hold_16(1719,inputData)
                }
            }

        }

    }

    A_Label{
        anchors.top: qrCodeProcessBackGround.top
        anchors.topMargin: 1500
        anchors.left: qrCodeProcessBackGround.left
        anchors.leftMargin: 30
        labelWidth: 300
        label_Data: qsTr("当前二维码类型")
    }

    ComboBox {
        id : qrType_ComboBox
        anchors.top: qrCodeProcessBackGround.top
        anchors.topMargin: 1580
        anchors.left: qrCodeProcessBackGround.left
        anchors.leftMargin: 30
        width: 300
        height: 50

        currentIndex: Cpp_Config.QR_Code_Type-1

        // 模型数据
        model: ListModel {
            // id: comboModel
            ListElement{name:qsTr("长风离线")}
            ListElement{name:qsTr("速制离线")}
            ListElement{name:qsTr("画门窗离线")}
            ListElement{name:qsTr("创品离线")}
            ListElement{name:qsTr("新格尔离线")}
            // ListElement{name:qsTr("长风在线")}
            // ListElement{name:qsTr("新格尔在线")}
            // ListElement{name:qsTr("速制在线")}
            // ListElement{name:qsTr("创品在线")}
        }

        property string customDisplayText: model.get(currentIndex).name

        // 显示文本覆盖
        contentItem: Text {
            text: qrType_ComboBox.customDisplayText
            font.pixelSize: Cpp_Config.Language_Type === 1 ? 26 :  Cpp_Config.Language_Type === 2 ? 20 : 20
            color: qrType_ComboBox.currentIndex >= 0 &&
                   qrType_ComboBox.model.get(qrType_ComboBox.currentIndex).premium ?
                       premiumColor : "#2c3e50"
            horizontalAlignment: Text.AlignLeft
            verticalAlignment: Text.AlignVCenter
            leftPadding: 20
            elide: Text.ElideRight
            font.bold: true
        }

        // 背景样式
        background: Rectangle {
            border.width: 3
            radius: 12

            // 当ComboBox打开时改变样式
            color: qrType_ComboBox.popup.visible ? "#f0f8ff" : "#ffffff"
            border.color: qrType_ComboBox.popup.visible ? "#3498db" : (qrType_ComboBox.hovered ? "#3498db" : "#bdc3c7")
        }

        // 下拉指示器
        indicator: Canvas {
            x: qrType_ComboBox.width - width - 20
            y: qrType_ComboBox.topPadding + (qrType_ComboBox.availableHeight - height) / 2
            width: 24
            height: 14
            contextType: "2d"

            onPaint: {
                context.reset();
                context.moveTo(0, 0);
                context.lineTo(width, 0);
                context.lineTo(width / 2, height);
                context.closePath();
                context.fillStyle = qrType_ComboBox.popup.visible ? "#3498db" : "#7f8c8d";
                context.fill();
            }
        }

        // 下拉菜单（高度200px）
        popup: Popup {
            y: qrType_ComboBox.height + 10
            width: qrType_ComboBox.width
            implicitHeight: 200
            // padding: 2

            contentItem: ListView {
                clip: true
                implicitHeight: contentHeight
                model: qrType_ComboBox.popup.visible ? qrType_ComboBox.delegateModel : null
                currentIndex: qrType_ComboBox.highlightedIndex
                boundsBehavior: Flickable.StopAtBounds
            }

            background: Rectangle {
                color: "#ffffff"
                border.color: "#3498db"
                border.width: 2
                radius: 12
                layer.enabled: true
                layer.effect: DropShadow {
                    radius: 12
                    color: "#40000000"
                    samples: 20
                }
            }
        }

        // 下拉项委托
        delegate: ItemDelegate {
            width: qrType_ComboBox.width
            height: 60
            hoverEnabled: true

            // 名称（大字体）
            Text {
                text: model.name
                font.pixelSize: Cpp_Config.Language_Type === 1 ? 35 :  Cpp_Config.Language_Type === 2 ? 20 : 20
                color: model.premium ? premiumColor : "#2c3e50"
                font.bold: true
                anchors.verticalCenter:  parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 20
            }

        }


        onActivated: {
            console.log(model.get(currentIndex).name)
            Cpp_PLC.QR_Code_CurrentType = currentIndex+1
            Cpp_Scanner.Current_QR_Type = currentIndex+1
            Cpp_Config.QR_Code_Type = currentIndex+1
        }

    }


    // A_Label {
    //     id: test
    //     anchors.top: qrCodeProcessBackGround.top
    //     anchors.topMargin: 1580
    //     anchors.right: qrCodeProcessBackGround.right
    //     anchors.rightMargin: 30

    //     visible: Cpp_PLC.QR_Code_CurrentType > 5 ? true : false

    //     label_Data: "在线料单模式"

    // }


    A_Button{
        anchors.right: qrCodeProcessBackGround.right
        anchors.rightMargin: 50
        anchors.bottom: qrCodeProcessBackGround.bottom
        anchors.bottomMargin: 200
        buttonWidth: 150
        buttonHeight: 90
        contentText_Data: Cpp_PLC.SawsStartState ? qsTr("锯  启") : qsTr("锯  停")
        contentText_Fontsize:  Cpp_Config.Language_Type === 1 ? 35 :  Cpp_Config.Language_Type === 2 ? 20 : 20
        contentRectangle_BorderWidth: Cpp_PLC.SawsStartState ? 5 : 3
        contentRectangle_BorderColor: Cpp_PLC.SawsStartState ? "gold" : "black"

        onButtonPressed: {
            // console.log("锯片按下")
            Cpp_PLC.write_Modbus_RTU_Coils(237,"1")
        }

        onButtonReleased: {
            // console.log("锯片松开")
            Cpp_PLC.write_Modbus_RTU_Coils(237,"0")
        }
    }






}
